package com.zyzd.general.module.recyclerview.slidebar;

import com.zyzd.general.entity.local.UserEntity;
import com.zyzd.general.model.TestModel;
import com.zyzd.retrofit.base.BaseRecyclerPresenter;

/**
 * Created by lzy on 2018/5/16 0016.
 * description ${快速索引案例 Presenter}
 */
class SidebarPresenter extends BaseRecyclerPresenter<SidebarContract.IView, UserEntity> implements SidebarContract.IPresenter {

    private TestModel mModel;

    @Override
    public void loadData(boolean isRefresh) {
        mView.onLoadDataSuccess(isRefresh, mModel.getUserList());
    }

    @Override
    protected void createModel() {
        mModel = TestModel.getInstance();
    }
}
